package entity;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.UUID;

public class GroupRelation implements Serializable {
    private static final long serialVersionUID = 2290664320949394349L;
    private String username;
    private UUID groupId;
    private LocalDateTime timestamp;

    public GroupRelation(String username, UUID groupId, LocalDateTime timestamp) {
        this.username = username;
        this.groupId = groupId;
        this.timestamp = timestamp;
    }

    public GroupRelation(GroupRelation other) {
        this.username = other.username;
        this.groupId = other.groupId;
        this.timestamp = other.timestamp;
    }

    public String getUsername() {
        return username;
    }

    public UUID getGroupId() {
        return groupId;
    }

    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }
}
